package com.tencent.wxcloudrun.dto;

import java.time.LocalDateTime;
import java.util.Date;

import com.tencent.wxcloudrun.domain.TActi;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Author ZhaoZiYin
 * @Date 2025/4/22
 * @Description 查询活动列表请求出参
 */
@Data
@ApiModel(value = "ActiListResDTO", description = "查询活动列表请求出参")
public class ActiListResDTO {

    @ApiModelProperty("活动ID")
    private Long actiId;

    @ApiModelProperty("活动参选类型 1-上新活动 2-返图活动")
    private Integer actiType;

    @ApiModelProperty("活动状态 1-草稿 2-未开始 3-进行中 4-抽选中 5-已结束")
    private Integer actiStatus;

    @ApiModelProperty("活动入围状态 1-未开始 2进行中 3-已结束")
    private Integer actiSelectedStatus;

    @ApiModelProperty("活动黑箱状态 1-未开始 2进行中 3-已结束")
    private Integer actiBlackStatus;

    @ApiModelProperty("活动标题")
    private String actiTitle;

    @ApiModelProperty("活动图片列表")
    private String actiImgUrlList;

    @ApiModelProperty("活动日期")
    private Integer actiDate;

    @ApiModelProperty("开始时间")
    private LocalDateTime actiBeginTime;

    @ApiModelProperty("结束时间")
    private LocalDateTime actiEndTime;

    public void build(TActi acti) {
        this.setActiId(acti.getId());
        this.setActiType(acti.getActiType());
        this.setActiStatus(acti.getActiStatus());
        this.setActiSelectedStatus(acti.getActiSelectedStatus());
        this.setActiBlackStatus(acti.getActiBlackStatus());
        this.setActiTitle(acti.getActiTitle());
        this.setActiImgUrlList(acti.getActiImgUrlList());
        this.setActiDate(acti.getActiDate());
        this.setActiBeginTime(acti.getActiBeginTime());
        this.setActiEndTime(acti.getActiEndTime());
    }

}
